// Copyright © SixtyFPS GmbH <info@slint-ui.com>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial

//include_path: ../../../examples/printerdemo/ui/images/
TestCase := Rectangle {
    property <image> empty_image: @image-url("");
    property <image> cat: @image-url("cat.jpg");

    property <int> empty_width: empty_image.width;
    property <int> empty_height: empty_image.height;
    property <int> cat_width: cat.width;
    property <int> cat_height: cat.height;

    property <bool> test: empty_width == 0 && empty_height == 0 && cat_width == 320 && cat_height == 480;
}

/*

```cpp
auto handle = TestCase::create();
const TestCase &instance = *handle;
assert_eq(instance.get_empty_width(), 0);
assert_eq(instance.get_empty_height(), 0);
assert_eq(instance.get_cat_width(), 320);
assert_eq(instance.get_cat_height(), 480);
```


```rust
let instance = TestCase::new().unwrap();
assert_eq!(instance.get_empty_width(), 0);
assert_eq!(instance.get_empty_height(), 0);
assert_eq!(instance.get_cat_width(), 320);
assert_eq!(instance.get_cat_height(), 480);
```

```js
var instance = new slint.TestCase();
assert.equal(instance.empty_width, 0);
assert.equal(instance.empty_height, 0);
assert.equal(instance.cat_width, 320);
assert.equal(instance.cat_height, 480);
```

*/
